//
//  CJTemplateModel.h
//  TSDemo_ImageFilter
//
//  Created by qian on 2014/5/8.
//  Copyright (c) 2014年 dvlproad. All rights reserved.
//
//  拼图模板的完整数据模型

#import <Foundation/Foundation.h>
#import "CJTemplatePositionModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface CJTemplateModel : NSObject {
    
}
@property (nullable, nonatomic, copy) NSString *title;    /**< 模板的名字 */
@property (nonatomic, strong) NSArray<CJTemplatePositionModel *> *realTemplateModels;

// 额外增加的两个用来区分不同模板属性
//@property (nonatomic, assign, readonly) NSInteger subViewCount;
//@property (nonatomic, assign, readonly) NSInteger styleIndex;
@property (nonatomic, strong, readonly) NSDictionary *templateDictionary;

//- (instancetype)initWithSubViewCount:(NSInteger)subViewCount styleIndex:(NSInteger)styleIndex;
- (instancetype)initWithTemplateDictionary:(NSDictionary *)templateDictionary;

@end

NS_ASSUME_NONNULL_END
